using System;
using System.Collections.Generic;
using System.Text;

using OWED.Network;
using OWED.Network.Messages.General;

namespace ClientGUI.Main
{
    /// <summary>
    /// This holds central data for the GUI.
    /// </summary>
    public class ProgramData
    {
        User my_user;
        Connection my_conn;
        Configuration my_config;
        DocName my_docname;

        /// <summary>
        /// Sean made comments a requirement?
        /// </summary>
        public ProgramData()
        {

        }
        /// <summary>
        /// The global current user.
        /// </summary>
        public User User { get { return my_user; }
            set { my_user = value; }
        }

        /// <summary>
        /// The configuration for the gui
        /// </summary>
        public Configuration Config { get { return my_config; } set { my_config = value; } }

        /// <summary>
        /// The connection for the GUI.
        /// </summary>
        public Connection Connection { get { return my_conn; } set { my_conn = value; } }

        /// <summary>
        /// The currently edited DocName, null if none
        /// </summary>
        public DocName DocName { get { return my_docname; } set { my_docname = value; } }

    }
}
